package com.topgay.domain;

import java.io.Serializable;

public class CSCenter implements Serializable{

	private int cscenterNo; 	//글번호	board_no  
	private String id;        	//아이디             
	private String nickname;   	//닉네임             
	private String divide;     	//구분              
	private int divideNo; 		//글번호	divide_no 
	private String title;      	//제목              
	private String content;    	//내용              
	private String result;     	//처리결과            
	private int viewCnt;    	//조회수	view_cnt             
	private String creDate;   	//작성일	cre_date  
	private String delDate;   	//삭제일	del_date  
	
	public CSCenter() {
		super();
	}

	public CSCenter(int cscenterNo, String id, String nickname, String divide,
			int divideNo, String title, String content, String result,
			int viewCnt, String creDate, String delDate) {
		super();
		this.cscenterNo = cscenterNo;
		this.id = id;
		this.nickname = nickname;
		this.divide = divide;
		this.divideNo = divideNo;
		this.title = title;
		this.content = content;
		this.result = result;
		this.viewCnt = viewCnt;
		this.creDate = creDate;
		this.delDate = delDate;
	}

	public int getCscenterNo() {
		return cscenterNo;
	}

	public void setCscenterNo(int cscenterNo) {
		this.cscenterNo = cscenterNo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getDivide() {
		return divide;
	}

	public void setDivide(String divide) {
		this.divide = divide;
	}

	public int getDivideNo() {
		return divideNo;
	}

	public void setDivideNo(int divideNo) {
		this.divideNo = divideNo;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public int getViewCnt() {
		return viewCnt;
	}

	public void setViewCnt(int viewCnt) {
		this.viewCnt = viewCnt;
	}

	public String getCreDate() {
		return creDate;
	}

	public void setCreDate(String creDate) {
		this.creDate = creDate;
	}

	public String getDelDate() {
		return delDate;
	}

	public void setDelDate(String delDate) {
		this.delDate = delDate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((creDate == null) ? 0 : creDate.hashCode());
		result = prime * result + cscenterNo;
		result = prime * result + ((delDate == null) ? 0 : delDate.hashCode());
		result = prime * result + ((divide == null) ? 0 : divide.hashCode());
		result = prime * result + divideNo;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((nickname == null) ? 0 : nickname.hashCode());
		result = prime * result
				+ ((this.result == null) ? 0 : this.result.hashCode());
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + viewCnt;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CSCenter other = (CSCenter) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (creDate == null) {
			if (other.creDate != null)
				return false;
		} else if (!creDate.equals(other.creDate))
			return false;
		if (cscenterNo != other.cscenterNo)
			return false;
		if (delDate == null) {
			if (other.delDate != null)
				return false;
		} else if (!delDate.equals(other.delDate))
			return false;
		if (divide == null) {
			if (other.divide != null)
				return false;
		} else if (!divide.equals(other.divide))
			return false;
		if (divideNo != other.divideNo)
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (nickname == null) {
			if (other.nickname != null)
				return false;
		} else if (!nickname.equals(other.nickname))
			return false;
		if (result == null) {
			if (other.result != null)
				return false;
		} else if (!result.equals(other.result))
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (viewCnt != other.viewCnt)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CSCenter [cscenterNo=" + cscenterNo + ", id=" + id
				+ ", nickname=" + nickname + ", divide=" + divide
				+ ", divideNo=" + divideNo + ", title=" + title + ", content="
				+ content + ", result=" + result + ", viewCnt=" + viewCnt
				+ ", creDate=" + creDate + ", delDate=" + delDate + "]";
	}

}
